﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PRO.ORM;
using System.Data;

namespace PRO.Entity
{
    [Entity(TableName = "Pro_Deliver_address")]
    public class Deliver_address_Info : BaseEntity
    {
        private int _ID;
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4, PrimaryKey = true)]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _UserID;
        /// <summary>
        /// 用户id
        /// </summary>
         [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4)]
        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }
        private string _Consignee;
        /// <summary>
        /// 收货人
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 20)]
        public string Consignee
        {
            get { return _Consignee; }
            set { _Consignee = value; }
        }
        private string _Address;
        /// <summary>
        /// 收货地址
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 200)]
        public string Address
        {
            get { return _Address; }
            set { _Address = value; }
        }
        private string _Zip;
        /// <summary>
        /// 邮编
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 6)]
        public string Zip
        {
            get { return _Zip; }
            set { _Zip = value; }
        }
        private string _Moble;
        /// <summary>
        /// 手机
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 11, NotNull = false)]
        public string Moble
        {
            get { return _Moble; }
            set { _Moble = value; }
        }
        private string _Phone;
        /// <summary>
        /// 电话
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 30, NotNull = false)]
        public string Phone
        {
            get { return _Phone; }
            set { _Phone = value; }
        }
        private bool _Default_Addr;
        /// <summary>
        /// 默认收货地址
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.Bit, Len = 1, DefaultValue = false)]
        public bool Default_Addr
        {
            get { return _Default_Addr; }
            set { _Default_Addr = value; }
        }
    }
}
